<template>
	<view class="web-view">
	    <web-view :src="url" @message="message"></web-view>
	</view>
</template>

<script>
	const Alibcsdk = uni.requireNativePlugin('UZK-Alibcsdk');
	export default{
		data() {
			return {
				url: null,
				options: {}
			}
		},
		onLoad(options) {
			this.options = options;
		},
		onShow() {
			// 进入百亿补贴
			// plus.statistic.eventTrig('page_change', '进入百亿补贴-来源：' + plus.runtime.channel || 'other');
			
			uni.showLoading({
				title: '加载中'
			})
			// this.url = 'http://192.168.0.106:8000/?app=hf'
			this.url = this.options.url
			console.log(this.options.url)
			
			setTimeout(() => {
				uni.hideLoading()
			}, 2000);
		},
		methods: {
			message(e) {
				Alibcsdk.openurl({
					url: e.detail.data[0].url,
				}, result => {});
			}
		}
	}
</script>

<style>
</style>
